//
//  BookManager.m
//  NSStringAndNSValue
//
//  Created by dllo on 16/7/6.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "BookManager.h"

@implementation BookManager

- (void) addBook:(Book *)book
{
    [self.book addObject:book];
    
}
- (void)list{
    NSLog(@"%@",self.book);
}
- (void) removeBook:(Book *)book
{
    [self.book removeObject:book];
}

- (instancetype)init
{
    self = [super init];
    if (self) {
        _book = [NSMutableArray array];
    }
    return self;
}

- (void)listBookName
{
    for (Book *book in self.book) {
        NSLog(@"%@",book.name);
    }
}





@end
